<script setup lang="ts">
import Son from './Son.vue'
import { onMounted, ref } from 'vue'
const son = ref()
onMounted(() => {
  son.value.handler()
  console.log(son)
})
</script>

<template>
  <Son ref="son" />
</template>

<style scoped></style>
